/**
 * 
 */
package com.guoxin.chapter2.deadlocktest;

/**
 * @author guoxin
 * @date 2019年8月19日
 */
public class Run {

	public static void main(String[] args) throws InterruptedException {
		DeadThread t1 = new DeadThread();
		t1.setFlag("a");
		Thread thread1 = new Thread(t1);
		thread1.start();
		Thread.sleep(100);
		t1.setFlag("b");
		Thread thread2 = new Thread(t1);
		thread2.start();
	}
}
